package com.ruoyi.finance.domain.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class KltSalesDetailStockDTO {
    @TableId(type = IdType.AUTO)
    private Integer salesDetailId;

    private String stockId;

    private String salesOrderId;
    @Excel(name = "产品名称")
    private String productName;
    @Excel(name = "型号")
    private String model;
    @Excel(name = "库存数量")
    private Long stockQuantity;

    @Excel(name = "销售订单号")
    private String salesOrderNumber;
    @Excel(name = "销售货期")
    private String salesDeliveryDate;
    @Excel(name = "销售日期",dateFormat ="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date salesDate;
    @Excel(name = "客户名称")
    private String customerName;
    @Excel(name = "销售开票号码")
    private String salesInvoiceNumber;
    @Excel(name = "销售开票日期" ,dateFormat ="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date salesInvoiceDate;
    @Excel(name = "销售开票数量")
    private Integer salesInvoiceQuantity;
    @Excel(name = "销售开票金额")
    private BigDecimal salesInvoiceAmount;
    @Excel(name = "销售未开票金额")
    private BigDecimal unpaidSalesInvoiceAmount;
    @Excel(name = "销售成本")
    private BigDecimal salesCost;
    @Excel(name = "备注")
    private String remarks;



    @Excel(name = "销售单价")
    private BigDecimal salesUnitPrice;
    @Excel(name = "销售数量")
    private Integer salesQuantity;
    @Excel(name = "销售金额")
    private BigDecimal salesAmount;
    @Excel(name = "利润")
    private Double profit;
    @Excel(name = "存放地点")
    private String storageLocation;
    @Excel(name = "单位")
    private String unit;
    @Excel(name = "到货情况")
    private String arrivalStatus;
    @Excel(name = "发货情况")
    private String deliveryStatus;
    @Excel(name = "销售员")
    private String salesman;
    @Excel(name = "发票商品代码")
    private String invoiceProductCode;

    @Excel(name = "预计收货期")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date estimatedArrivalDate;

    @Excel(name = "是否到货")
    private String isArrived;

    private String isDel;

    private Date createTime;

    private String createSource;

    private Date updateTime;

    private String updateUser;
}
